﻿<Window x:Class="TicTacToe.UI.NewGameDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:components="clr-namespace:TicTacToe.UI.Components"
        Title="New Game" Width="283" Height="277"
        Icon="..\3dtictactoe.png" x:ClassModifier="internal"
        ResizeMode="CanMinimize" WindowStartupLocation="CenterScreen"
        Closing="Window_Closing">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="34" />
        </Grid.RowDefinitions>
        
        <StackPanel Orientation="Vertical" Margin="3">

            <GroupBox Height="58" Header="Player 1">
                <components:PlayerPropertyControl x:Name="playerOneControl" />
            </GroupBox>

            <TabControl Name="tabControl" Height="90" SelectionChanged="TabControl_SelectionChanged">
                <TabItem Header="Human">
                    <GroupBox Header="Player 2">
                        <components:PlayerPropertyControl x:Name="playerTwoControl" />
                    </GroupBox>
                </TabItem>
                <TabItem Header="AI">
                    <ComboBox Margin="6,2" Height="28" VerticalContentAlignment="Center" SelectedIndex="1" Name="aiDifficultyCBox">
                        <ComboBoxItem Name="aiEasy" Content="Easy" />
                        <ComboBoxItem Name="aiMedium" Content="Medium" />
                        <!--<ComboBoxItem Name="aiHard" Content="Hard" />
                        <ComboBoxItem Name="aiInsane" Content="Insane" />-->
                    </ComboBox>
                </TabItem>
            </TabControl>

            <GroupBox Height="50" Header="Select one player to begin">
                <ComboBox Margin="6,2" Name="firstPlayerCBox">
                    <ComboBoxItem Name="playerOneCBItem" Content="Player 1" />
                    <ComboBoxItem Name="playerTwoCBItem" Content="Player 2" />
                </ComboBox>
            </GroupBox>
        </StackPanel>

        <Button Grid.Row="1" Style="{StaticResource buttonStyle}" Name="startButton" Height="25" Width="85" Content="Start" Click="startButton_Click" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="0,3,0,6" />
    </Grid>
</Window>
